<template>
  <div>
    <ic-slider :autoplay="3000">
      <ic-slider-item v-for="(item,index) in banners" :key="index">
        <a :href="item.link"><img :src="item.image"/></a>
      </ic-slider-item>
    </ic-slider>
  </div>
</template>

<script>
import 'vue-better-slider/style.css'
import {IcSlider,IcSliderItem} from 'vue-better-slider'
export default {
  name: 'swiper',
  components: {
    IcSlider,
    IcSliderItem
  },
  props: {
    banners: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>

<style scoped>

</style>
